package jannex.internal;

public final class Hashing {
    private Hashing() {}

    public static int smear(int hashCode) {
        hashCode ^= (hashCode >>> 20) ^ (hashCode >>> 12);
        hashCode ^= (hashCode >>> 7) ^ (hashCode >>> 4);
        hashCode *= 0x5BD1E995; // Constant borrowed from Murmur hash
        return hashCode;
    }
}
